package com.pxst.merchant.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.pxst.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
 * 商户白名单（sh130）
 * @TableName sys_merchant_white_list
 */
@TableName(value ="sys_merchant_white_list")
@Data
public class SysMerchantWhiteListEntity extends BaseEntity implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 商户ID
     */
    @ApiModelProperty("商户id")
    @NotNull(message = "商户id不能为空")
    private Long merchantId;

    /**
     * 白名单IP
     */
    @ApiModelProperty("白名单IP")
    @NotNull(message = "ip不能为空")
    private String ip;

    /**
     * IP 格式, 1: IPv4, 2: IPv4 CIDR
     */
    @ApiModelProperty("IP 格式, 1: IPv4, 2: IPv4 CIDR")
    private Integer ipFormat;

    /**
     * 类型: 1 Withdraw(充值) 2 Deposit(提现) BS200
     */
    @ApiModelProperty("类型: 1 Withdraw(充值) 2 Deposit(提现) BS200")
    private Integer type;

    /**
     * 状态 1 Active(启用) 0 Inactive(禁用) BS200
     */
    @ApiModelProperty("状态 1 Active(启用) 0 Inactive(禁用) BS200")
    private Integer status;

}